# -*- coding:utf-8 -*-
"""
@Time : 2020-12-15 11:54
@Author: langengel
@Des: 用户验证模型
"""
from pydantic import BaseModel
from typing import Optional, List


class CreateUser(BaseModel):
    """
    添加用户
    """
    roles: List[int]
    full_name: str
    u_status: int
    remarks: Optional[str] = None


class UpdateAdminUser(BaseModel):
    """
    添加用户
    """
    user_id: int
    roles: List[int]
    full_name: str
    u_status: int
    remarks: Optional[str] = None


class WxInfo(BaseModel):
    """
    微信用户信息
    """
    city: str = None,
    country: str = None,
    headimgurl: str = None,
    nickname: str = None,
    openid: str = None,
    province: str = None,
    sex: int = None


class AccountLogin(BaseModel):
    username: str
    password: str
